import Vue from 'vue'
import Router from 'vue-router'
import Intro from './view/intro.vue'
import Guide from './view/pages.vue'
import Equipment from './view/equipment.vue'
import Treasure from './view/treasure.vue'
import Graphic from './view/graphic.vue'
import Sponsor from './view/sponsor.vue'
import Dic from './view/tool/dictionary.vue'
import Reduce from './view/tool/reduce.vue'
import Tools from './view/tool/tools.vue'
import Recipe from './view/tool/recipe.vue'
import IdGenerate from './view/tool/idGenerate.vue'

Vue.use(Router)

const router = new Router({
  routes: [
    // 首屏展示加载动画
    { path: '/', name: 'Intro', component: Intro },
    { path: '/guide', name: 'Guide', component: Guide },
    { path: '/equipment', name: 'Equipment', component: Equipment },
    { path: '/treasure', name: 'Treasure', component: Treasure },
    { path: '/graphic', name: 'Graphic', component: Graphic },
    { path: '/sponsor', name: 'Sponsor', component: Sponsor },
    { path: '/tools', name: 'Tools', component: Tools },
    { path: '/dictionary', name: 'Dictionary', component: Dic },
    { path: '/reduce', name: 'Reduce', component: Reduce },
    { path: '/recipe', name: 'recipe', component: Recipe },
    { path: '/idGenerate', name: 'IdGenerate', component: IdGenerate },
  ]
})

export default router
